package mastercard.assets.jpa;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the tbl_tarea_flujo database table.
 * 
 */
@Embeddable
public class TblTareaFlujoPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private int cveTarea;
	private int cveTareaSigue;
	private int cveSalida;

    public TblTareaFlujoPK() {
    }

	@Column(name="cve_tarea", unique=true, nullable=false)
	public int getCveTarea() {
		return this.cveTarea;
	}
	public void setCveTarea(int cveTarea) {
		this.cveTarea = cveTarea;
	}

	@Column(name="cve_tarea_sigue", unique=true, nullable=false)
	public int getCveTareaSigue() {
		return this.cveTareaSigue;
	}
	public void setCveTareaSigue(int cveTareaSigue) {
		this.cveTareaSigue = cveTareaSigue;
	}

	@Column(name="cve_salida", unique=true, nullable=false)
	public int getCveSalida() {
		return this.cveSalida;
	}
	public void setCveSalida(int cveSalida) {
		this.cveSalida = cveSalida;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TblTareaFlujoPK)) {
			return false;
		}
		TblTareaFlujoPK castOther = (TblTareaFlujoPK)other;
		return 
			(this.cveTarea == castOther.cveTarea)
			&& (this.cveTareaSigue == castOther.cveTareaSigue)
			&& (this.cveSalida == castOther.cveSalida);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.cveTarea;
		hash = hash * prime + this.cveTareaSigue;
		hash = hash * prime + this.cveSalida;
		
		return hash;
    }
}